package com.example.common.feign;

import com.example.common.result.R;
import org.springframework.stereotype.Component;

@Component
public class UserFeignClientFallback implements UserFeignClient {
    
    @Override
    public R getUser(Long id) {
        return R.error("获取用户信息失败，服务降级");
    }
    
    @Override
    public R getUserByUsername(String username) {
        return R.error("获取用户信息失败，服务降级");
    }
}
